<template>
  <div class="container">
    <xy-table ref="table" :api="api" :columns="columns">
      <template slot="addItem">
        <search-header :model="param" :on-search="onSearch"> </search-header>
      </template>
      <span slot="operation"></span>
    </xy-table>
  </div>
</template>

<script>
import API from "../../plugins/api";
export default {
  data() {
    return {
      api: new API("/api/transaction/Query"),

      columns: {
        // ordrId: "XYBN2021051516131000001",
        MerchantName: "湖南新越规划建筑设计有限公司",
        ServiceProviderName: "湖南好捷科技有限公司",
        // atime: "2021-01-27",
        PaymentOutAmount: -40000,
        BeneficiaryName: "李健",
        BeneficiaryAccountNumber: "6228411100215078116",
        // ServiceContent: null,
        PayStatusName: "成功",
        // BusinesStatus: "2",
        // BusinesStatusName: "审核通过",
        // systemCheck: "审核通过",
        // sysRtnDesc: "交易成功",
        // idCardNo: "430219197007162719",
        // PaymentOutBatchNo: null,
        //  BatchNo: "BN21012714284695",
        //  PaymentOutOrderNo: "BNTQU2D6QI8D84VETVI",
        // /  MerchantCode: "000013",
      },
      param: {
        SID: "",
        MID: "",
        BeginDate: "",
        EndDate: "",
        BusinesStatus: "",
      },
    };
  },
  created() {
    // this.api.getList = "statements";
    console.log(this.api);
    this.api.getList = "Query";
  },
  methods: {
    onSearch(e) {
      this.$refs.table.getData(e);
    },
  },
};
</script>

<style></style>
